﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace PeisongWeb.admin
{
    public partial class systemErrorDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
                if (Library.Number.IsIntPositive(Request.QueryString["id"]))
                {
                    int slid = Convert.ToInt32(Request.QueryString["id"].ToString());
                    logic.sysLog.setView(slid);
                    DataRow dr = logic.sysLog.selectByID(slid);
                    if (dr != null)
                    {
                        lbl_id.Text = dr["slid"].ToString();
                        lbl_dt.Text = Library.DateTimeLib.DtConvert2(dr["sldt"].ToString());
                        lbl_severity.Text = dr["slserverity"].ToString();
                        lbl_exigence.Text = dr["slEmergency"].ToString();
                        hyp_url.NavigateUrl = dr["slurl"].ToString();
                        lbl_ip.Text = dr["slip"].ToString();
                        lbl_user.Text = dr["userEmail"].ToString();
                        lbl_infor.Text = dr["slInfor"].ToString();
                        lbl_suggest.Text = dr["suggest"].ToString();
                    }
                }
            }
        }
    }
}
